package city.spring.modules.oldman.repository;

import city.spring.modules.oldman.entity.OldmanFixedcostsEntity;
import city.spring.modules.oldman.vo.OldmanFixedcostsVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 存储库：老人入院固定缴费
 *
 * @author 谢金婷
 * @date 2020-08-19 16:32:49
 */
@Repository
public interface OldmanFixedcostsRepository extends BaseMapper<OldmanFixedcostsEntity> {
    /**
     * 根据老人id查找最新的入院固定费用
     *
     * @param oldmanId
     * @return
     */
    List<OldmanFixedcostsVO> getFixedcostsByOldmanId(@Param("oldmanId") String oldmanId);
}